#ifndef IAPSERVER_H
#define IAPSERVER_H

#include <e32base.h>
#include "CGainFocusEventObserver.h"

class CIAPServer : public CServer2,
                   public MFocusEventObserver

{
public:
    static CIAPServer* NewLC();
    ~CIAPServer();

    void Notify(TInt event);

private: // Functions from base classes

    /**
    * From CServer, NewSessionL.
    * Create a time server session.
    */
    CSession2* NewSessionL(const TVersion&, const RMessage2&) const;

private:
    CIAPServer();
    void ConstructL();
private:
    //data
    TInt                    iHostWinID;
    TInt                    iSelfWinID;
    CGainFocusEventObserver *iFocusObserver;
};

#endif // IAPSERVER_H
